<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='我的信息',active='user'">
<header th:replace="back/header::headerFragment(${title},${active})"></header>
<head>
</head>
<body class="fixed-left">
<div id="wrapper">
    <div th:replace="back/header::header-body"></div>
    <div class="content-page">
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <h4 class="page-title">个人信息</h4>
                    </div>
                    <div class="col-md-12">
                        <div class="card" style="width: 30rem;">
                            <img class="card-img-top" style="width: 30rem" th:src="@{${info.avatar}}" onerror="this.src='/assets/img/avatars.jpg'">
                            <div class="card-body">
                                <h3 class="card-title" th:text="${info.username}"></h3>
                                <p class="card-text" th:text="${info.signature}"></p>
                            </div>
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item" th:text="'E-mail: '+${info.email}">
                                </li>
                                <li class="list-group-item" th:text="'注册日期: '+${#dates.format(info.created, 'yyyy/MM/dd')}"></li>
                            </ul>
                            <div class="card-body">
                                <a href="/common/user/update" class="card-link">修改信息</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div th:replace="back/footer :: footer-content"></div>
            </div>
        </div>
    </div>
</div>
<div th:replace="back/footer :: footer"></div>
<script type="text/javascript">
</script>
</body>
</html>